Method for motion compensated interpolation using overlapped block motion estimation and frame-rate converter using the method

ABSTRACT

A method for motion compensated interpolation using overlapped block motion estimation and a frame-rate converter using the method, wherein the method includes storing an input image in frame units, dividing the stored image into N 1 ×N 2  blocks and M 1 ×M 2  blocks that are larger than the N 1 ×N 2  blocks based on the same center axis as that of the N 1 ×N 2  blocks and overlapped with adjacent blocks and sampling pixels in the M 1 ×M 2  blocks, estimating a motion vector by matching the sampled M 1 ×M 2  blocks between adjacent frames, and creating a median pixel value between the adjacent frames using the estimated motion vector and pixel values of the matched N 1 ×N 2  blocks between the adjacent frames.

BACKGROUND OF THE INVENTION

This application claims priority from Korean Patent Application No. 2004-9021, filed on Feb. 11, 2004 in the Korean Intellectual Property Office, the disclosure of which is incorporated herein in its entirety by reference.

1. Field of the Invention

The present invention relates to a frame-rate converting system, and more particularly, to a method for motion compensated interpolation using overlapped block motion estimation and a frame-rate converter using the method.

2. Description of the Related Art

Conventionally, in personal computers (PC) or high-definition televisions (HDTV), frame rate conversion is performed for compatibility between programs having various broadcasting signal standards such as PAL or NTSC. Frame rate conversion means conversion of the number of frames that are output per second. In particular, when a frame rate is increased, interpolation of a new frame is required. With the recent development of broadcasting techniques, frame rate conversion is performed after video data is compressed according to video compression schemes such as Moving Picture Experts Group (MPEG) or H.263.

Since video signals between frames mostly have high autocorrelation, they have redundancy. Thus, the efficiency of data compression can be improved by removing such redundancy in data compression. At this time, to efficiently compress video frames that temporally change, it is necessary to remove redundancy in the direction of a time axis. In other words, by replacing a frame having little or no motion with respect to a previous frame, it is possible to largely reduce the amount of data to be transmitted. Motion estimation (ME) is a task of searching for the most similar blocks between a previous frame and a current frame. A motion vector (MV) indicates a magnitude of block's movement in ME.

In general, motion estimation methods use a block matching algorithm (BMA) based on the accuracy, the possibility of real-time processing, and hardware implementation.

The BMA divides a seamless input video into pixel blocks of a predetermined size, searches for the most similar block of each of the divided pixel blocks in a previous or future frame, and determines the found block as an MV. To determine similarity between adjacent blocks, mean absolute differences (MADs) are usually used in the BMA.

Also, video signals that are to be inserted between frames are created using the BMA. FIG. 1 shows motion compensated interpolation between frames using the BMA.

In FIG. 1, when pixel values of blocks B included in frames F_(n), F_(n−), and F_(i) are f_(n), f_(n−1), and f_(i) and a coordinate value included in the frame F_(n) is x, a video signal to be motion compensation interpolated can be expressed as follows in Equation 1. ƒ₁(x+MV(x)/2)={ƒ_(n)(x)+ƒ_(n−1)(x+MV(x))}+2   (1)

Such BMA is suitable for real-time processing, and thus, is used not only in frame rate conversion but also in compression standards such as MPEG2/4 and H.262/264. The BMA shows excellent performance in motion estimation having horizontal/vertical components, but shows inferior performance in rotation or reduction of videos. Therefore, to improve the accuracy using the BMA, the size of a matching block should be increased. However, as a block size increases, the accuracy is improved, but it is difficult to achieve fine expression. As a block size decreases, the amount of computation is decreased and fine expression is possible, but the accuracy is decreased.

SUMMARY OF THE INVENTION

Illustrative, non-limiting embodiments of the present invention overcome the above disadvantages and other disadvantages not described above. Also, the present invention is not required to overcome the disadvantages described above, and an illustrative, non- limiting embodiment of the present invention may not overcome any of the problems described above

The present invention provides a method for motion compensated interpolation, which reduces the amount of computation caused by block-based motion estimation and increases precision by performing motion estimation using sampled blocks and performing motion compensated interpolation using non-sampled blocks, and a frame-rate converter using the method.

According to one aspect of the present invention, there is provided a method for motion compensated interpolation, the method comprising: storing an input image in frame units; (b) dividing pixels of the stored image into N₁×N₂ blocks and M₁×M₂ blocks based on the same center axis and sampling pixels in the M₁×M₂ blocks, wherein N₁, N₂, M₁ and M₂ are positive integers, the M₁×M₂ blocks are larger than the N₁×N₂ blocks, and adjacent M₁×M₂ blocks are overlapped with each other; estimating a motion vector by matching sampled pixels of the M₁×M₂ blocks between adjacent frames; and creating a mean pixel value between the adjacent frames using the motion vector and pixel values of matched N₁×N₂ blocks between the adjacent frames.

According to another aspect of the present invention, there is provided a frame-rate converter that divides pixels of a frame into N1×N2 blocks and M1×M2 blocks that are larger than the N×N blocks based on the same center axis as that of the N×N blocks and converts a frame rate, wherein N1, N2, M1 and M2 are positive integers and the M1×M2 blocks are larger than the N1×N2 blocks, the frame-rate coverter comprising: a frame buffer storing which stores an input image in frame units having the N1×N2 blocks and the M1×M2 blocks; a motion estimation unit sampling which samples pixels of the M1×M2 blocks stroedstored in the frame buffer and estimates a motion vector by matching the M1×M2 blocks between adjacent frames; and a motion compensated interpolation unit creating which generates a median pixel value between the adjacent frames based on the motion vector estimated in the motion estimation unit and the pixels of the N1×N2 blocks stored in the frame buffer.

BRIEF DESCRIPTION OF THE DRAWINGS

The above and other aspects of the present invention will become more apparent by describing in detail exemplary embodiments thereof with reference to the attached drawings in which:

FIG. 1 is a conceptual view of conventional motion compensated interpolation;

FIG. 2 is a flowchart illustrating a method for motion compensated interpolation according to an exemplary embodiment of the present invention;

FIG. 3 is a conceptual view of a method for motion compensated interpolation using an ME block and a motion compensated interpolation (MCI) block, according to an exemplary embodiment of the present invention;

FIG. 4 shows the ME block and the MCI block of FIG. 3; and

FIG. 5 is a block diagram of a frame-rate converter using the method for motion compensated interpolation according to an exemplary embodiment of the present invention.

DETAILED DESCRIPTION OF ILLUSTRATIVE, NON-LIMITING EMBODIMENTS OF THE INVENTION

FIG. 2 is a flowchart illustrating a method for motion compensated interpolation according to an exemplary embodiment of the present invention.

In operation 210, an input video is stored in frame units.

In operation 220, pixels in an n−1^(th)frame F_(n−1) and a n^(th) frame F_(n) are divided into motion compensated interpolation (hereinafter, referred to as MCI) blocks of N₁×N₂ and motion estimation (hereinafter, referred to as ME) blocks of M₁×M₂ that are larger than the MCI blocks and based on the same center axis as that of the MCI blocks. At this time, M₁×M₂ are set larger than N×N₂. For example, the size of each ME block may be set to 32×32 and the size of each MCI block may be set to 16×16. However, it is not required that M₁ is equal M₂ and N₁ is equal to N₂. Also, a block of M₁×M₂ is separated horizontally by N₁ and vertically by N₂ from its left, right, up, and down adjacent blocks. Thus, the ME blocks of M₁×M₂ are overlapped with adjacent blocks.

In operation 230, pixels in the ME blocks of the n−1^(th) frame F_(n−1) and nth frame F_(n) are sub-sampled to ½ or less.

Referring to FIG. 4, an ME block of M₁×M₂ and an MCI block of N₁×N₂ are shown, wherein the ME block of M₁×M₂ is sub-sampled using a sampling coefficient of 2 and selected pixels and non-selected pixels are separately marked.

In operation 240, the ME block of M₁×M₂ that is sub-sampled between the n−1^(th) frame F_(n) I and the nth frame F_(n) is matched in a backward or forward direction and a motion vector to be applied to a frame Fi that is to be interpolated between frames F_(n) and F_(n−1) is estimated.

For example, motion estimation using a sampling block will be described with reference to FIG. 3. When the n−1^(th) frame F_(n−1) and the n^(th) frame F_(n) are given, the MV is determined by calculating MADs between the base blocks in the current frame F_(n−1) and the reference blocks in the previous frame F_(n) and calculating a spatial distance to a block having the minimum MAD. The MADs are calculated as follows in Equation 2. $\begin{matrix} {{{{MAD}_{({k,l})}\left( {x,y} \right)} = {\sum\limits_{i = 1}^{N_{1}}{\sum\limits_{j = 1}^{N_{2}}\frac{{{f_{n - 1}\left( {{k + i + x},{l + j + y}} \right)} - {f_{n}\left( {{k + i},{l + j}} \right)}}}{N_{1} \times N_{2}}}}},} & (2) \end{matrix}$ where n indicates the order of input frames in a time domain, (i, j) indicates spatial coordinates of pixels, (x, y) indicates a spatial distance difference between two blocks to be matched, (k, l) indicates spatial coordinates of two blocks each having N₁×N₂ pixels, and N₁ and N₂ respectively indicates a horizontal size and a vertical size of two matched blocks. Also, the MV for the block having the minimum MAD is obtained within an ME area as follows in Equation 3. $\begin{matrix} {{\left( {x_{m},y_{m}} \right)_{({k,l})} = {\arg\quad{\min\limits_{{({x,y})} \in S}\left\{ {{MAD}_{({k,l})}\left( {x,y} \right)} \right\}}}},} & (3) \end{matrix}$ where S indicates a search range for ME and (x_(m), y_(m)) indicates the MV for the block having the minimum MAD.

At this time, the MAD obtained using the sampled ME blocks can be expressed as follows in Equation 4. $\begin{matrix} {{{{MAD}_{({k,l})}\left( {x,y} \right)} = {\sum\limits_{i = 1}^{\lbrack{M_{1}/\alpha}\rbrack}{\sum\limits_{j = 1}^{\lbrack{M_{2}/\alpha}\rbrack}\frac{\alpha^{2}{{{f_{n - 1}\left( {k + {\alpha\quad j} + y} \right)} - {f_{n}\left( {{k + {\alpha\quad i}},{l + {\alpha\quad j}}} \right)}}}}{M_{1} \times M_{2}}}}},} & (4) \end{matrix}$ where α indicates a sampling coefficient for the pixels in the ME block, [M/α] is a maximum integer that is not larger than M/α, M₁×M₂ indicates a size of the ME block, and M₁ and M₂ are set larger than N₁ and N₂ of Equation 2, respectively. Referring to Equation 4, ME is performed using a block including pixels that are obtained by sampling a block of M₁×M₂ horizontally and vertically by a sampling coefficient α. At this time, by performing ME using the sampled block, the amount of computation can be reduced. For example, assuming that ME is performed for the same video frame, MCI blocks of the same size are used, and the same ME range is used, the amounts of computation required for conventional ME and ME according to the present invention can be compared as follows. When an ME range is S and the amount of computation per pixel for calculation of MADs is K, the amount of computation of an MV for an ME block according to conventional art can be expressed as SKN₁N₂ and the amount of computation of an MV for an ME block according to the present invention can be expressed as SK(M₁M₂/α²).

Next, in operation 250, a pixel value of the frame F_(i) to be interpolated is created as shown in FIG. 3 using the MCI blocks between frames based on MVs estimated using the ME blocks. In other words, for example, an interpolated frame is created in such a way that on the assumption that a frame to be interpolated is located in the middle of the n^(th) frame and n−1^(th) frame, if an MV oriented from the n^(th) frame towards the n−1^(th) frame is given, a mean of pixel values of matched points between the n^(th) frame and n−1^(th) frame is calculated as a pixel value of the frame to be interpolated.

The pixel value of the frame to be interpolated can be expressed as follows in Equation 5. $\begin{matrix} {{f_{i}\left( {{k + i},{k + j}} \right)} = \frac{{f_{n - 1}\left( {{k + i - \frac{x_{m}}{2}},{l + j - \frac{y_{m}}{2}}} \right)} + {f_{n}\left( {{k + i + \frac{x_{m}}{2}},{l + j + \frac{y_{m}}{2}}} \right)}}{2}} & (5) \end{matrix}$

Therefore, the amount of computation required for ME is reduced by estimating an MV using sampled ME blocks and image precision can be improved by performing motion compensated interpolation using an estimated MV and non-sampled MCI blocks.

FIG. 5 is a block diagram of a frame-rate converter using the method for motion compensated interpolation according to an exemplary embodiment the present invention.

Referring to FIG. 5, a frame buffer 510 stores an input image signal in frame units. For example, the n^(th) frame and n−1^(th) frame are stored in the frame buffer 510.

A motion estimation unit 520 includes a sampling unit 524 and a motion vector detection unit 526 and extracts MVs from sampled M×M blocks. In other words, the sampling unit 524 sub-samples M×M blocks of the n^(th) frame and n-1 ^(th) frame stored in the frame buffer 510, using a predetermined sampling coefficient. The motion vector detection unit 526 estimated an MV by matching the sampled M₁×M₂ blocks between the n^(th) frame and n−1^(th) frame in a backward or forward direction.

A motion compensated interpolation unit 240 creates a pixel value to be interpolated between frames by applying the MV detected in the MV detection unit 526 to N₁×N₂ blocks of the n^(th) frame and n−1 ^(th) frame stored in the frame buffer 510.

As described above, the amount of computation required for ME is reduced by estimating an MV using sampled ME blocks and image precision can be improved by performing motion compensated interpolation using an estimated MV and non-sampled MCI blocks.

Further, the motion compensated interpolation method can also be embodied as a computer readable code on a computer readable recording medium. The computer readable recording medium is any data storage device that can store data which can be thereafter read by a computer system. Examples of the computer readable recording medium include read-only memory (ROM), random-access memory (RAM), CD-ROMs, magnetic tapes, floppy disks, optical data storage devices, and carrier waves. The computer readable recording medium can also be distributed over network coupled computer systems so that the computer readable code is stored and executed in a distributed fashion.

While the present invention has been particularly shown and described with reference to an exemplary embodiment thereof, it will be understood by those of ordinary skill in the art that various changes in form and details may be made therein without departing from the spirit and scope of the present invention as defined by the following claims. 

1. A method for motion compensated interpolation, the method comprising: (a) storing an input image in frame units; (b) dividing pixels of the stored image into N₁×N₂ blocks and M₁×M₂ blocks based on the same center axis and sampling pixels in the M₁×M₂ blocks, wherein N₁, N₂, M₁ and M₂ are positive integers, the M₁×M₂ blocks are larger than the N₁×N₂ blocks, and adjacent M₁×M₂ blocks are overlapped with each other; (c) estimating a motion vector by matching sampled pixels of the M₁×M₂ blocks between adjacent frames; and (d) creating a mean pixel value between the adjacent frames using the motion vector and pixel values of matched N₁×N₂ blocks between the adjacent frames.
 2. The method of claim 1, wherein in (b), the M₁×M₂ blocks are motion estimation blocks and the N₁×N₂ blocks are motion compensated interpolation blocks.
 3. The method of claim 1, wherein (c) comprises: (c-1) calculating mean absolute differences between sampled base M₁×M₂ blocks in a current frame and sampled reference M₁×M₂ blocks in a previous frame; and (c-2) determining a minimum mean absolute difference among the mean absolute differences as the motion vector.
 4. The method of claim 3, wherein the mean absolute differences MADs are calculated by ${{{MAD}_{({k,l})}\left( {x,y} \right)} = {\sum\limits_{i = 1}^{\lbrack{M_{1}/\alpha}\rbrack}{\sum\limits_{j = 1}^{\lbrack{M_{2}/\alpha}\rbrack}\frac{\alpha^{2}{{{f_{n - 1}\left( {k + {\alpha\quad j} + y} \right)} - {f_{n}\left( {{k + {\alpha\quad i}},{l + {\alpha\quad j}}} \right)}}}}{M_{1} \times M_{2}}}}},$ where (i, j) indicates spatial coordinates of pixels, (x, y) indicates a spatial distance difference between two blocks to be matched, (k, l) indicates spatial coordinates of two blocks each having N₁×N₂ pixels, a indicates a sampling coefficient for pixels in blocks for motion estimation, [M/α] is a maximum integer that is not larger than M/α, M₁×M₂ is a size of each of the blocks for motion estimation, and M₁ and M₂ are set larger than N₁ and N₂, respectively.
 5. The method of claim 4, wherein in (d), a pixel value ƒ_(i) of a frame to be interpolated is calculated by ${{f_{i}\left( {{k + i},{k + j}} \right)} = \frac{{f_{n - 1}\left( {{k + i - \frac{x_{m}}{2}},{l + j - \frac{y_{m}}{2}}} \right)} + {f_{n}\left( {{k + i + \frac{x_{m}}{2}},{l + j + \frac{y_{m}}{2}}} \right)}}{2}},$ where x_(m) and y_(m) are vertical and horizontal components of a motion vector for a block having the minimum mean absolute difference.
 6. A method for motion estimation, the method comprising: (a) storing an input image in frame units; (b) dividing pixels of the input image which is stored into N₁×N₂ blocks and M₁×M₂ blocks based on a same center axis and sampling pixels in the M₁×M₂ blocks, wherein N₁, N₂, M₁ and M₂ are positive integers, the M₁×M₂ blocks are larger than the N₁×N₂ blocks, and adjacent M₁×M₂ blocks are overlapped with each other; and (c) estimating a motion vector by matching sampled pixels of the M₁×M₂ blocks between adjacent frames.
 7. A frame-rate converter that divides pixels of a frame into N₁×N₂ blocks and M₁×M₂ blocks based on the same center axis and converts a frame rate, wherein N₁, N₂, M₁ and M₂ are positive integers and the M₁×M₂ blocks are larger than the N₁×N₂ blocks, the frame-rate coverter comprising: a frame buffer which stores an input image in frame units having the N₁×N₂ blocks and the M₁×M₂ blocks; a motion estimation unit which samples pixels of the M₁×M₂ blocks stored in the frame buffer and estimates a motion vector by matching the M₁×M₂ blocks between adjacent frames; and a motion compensated interpolation unit which generates a median pixel value between the adjacent frames based on the motion vector estimated in the motion estimation unit and the pixels of the N₁×N₂ blocks stored in the frame buffer.
 8. The frame-rate converter of claim 7, wherein the motion estimation unit comprises: a sampling unit which sub-samples pixels of the M₁×M₂ blocks in an n^(th) frame and an n−1^(th) frame stored in the frame buffer using a predetermined sampling coefficient; and a motion vector detection unit which estimates a motion vector by matching pixels of sampled M₁×M₂ blocks in a backward or forward direction. 